<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>事件委托</title>
</head>
<body>
	<input type="button" value="添加li" />
	<ul>
		<li>春</li>
		<li>夏</li>
		<li>秋</li>
	</ul>
</body>
<script type="text/javascript" src="./jquery-3.1.1.js"></script>
<script type="text/javascript">
	$('ul').on('click','li',function(){
		// alert('duang');
		alert($(this).html());
	});
	$('input').click(function(){
		$('ul').append('<li>冬</li>');
	});
</script>
</html>